type: Mesh
name: mesh-1
mtls:
  enabledBackend: ca-1
  backends:
    - name: ca-1
      type: builtin
---
type: ZoneEgress
name: zoneegress-1
zone: zone-1
networking:
  address: 192.168.0.1
  port: 10002
---
type: TrafficPermission
name: allow-all-traffic
mesh: mesh-1
sources:
  - match:
      kuma.io/service: '*'
destinations:
  - match:
      kuma.io/service: '*'
---
type: MeshHTTPRoute
name: route-1
mesh: mesh-1
spec:
  targetRef:
    kind: MeshService
    name: service-in-zone-1
  to:
    - targetRef:
        kind: MeshService
        name: service-in-zone-2
      rules:
        - matches:
            - path:
                value: /
                type: PathPrefix
          default:
            backendRefs:
              - kind: MeshServiceSubset
                name: service-in-zone-2
                weight: 1
                tags:
                  version: v1
              - kind: MeshServiceSubset
                name: service-in-zone-2
                weight: 1
                tags:
                  version: v2
---
type: ZoneIngress
name: zone-2-zoneingress-1
zone: zone-2
networking:
  address: 10.0.0.254
  advertisedAddress: 10.0.0.254
  port: 10001
  advertisedPort: 10001
availableServices:
  - tags:
      kuma.io/service: service-in-zone-2
      kuma.io/protocol: http
    instances: 3
    mesh: mesh-1
